<!--<?
include L::getHtmlTpl('/html/head.html');
?>-->
<style>
    .skuPrice{
        width: 60px;
        height: 30px;
    }
</style>
<div style="width: 90%;padding-left: 100px">
    <form action="" id="myform" class="row">
        <input type="hidden" name="account" _value="$this->account">
        <input type="hidden" name="id" _value="$this->id">
        <table style="" width="90%" border="1">
            <tr style="text-align: center">
                <td>SKU</td>
                <td>属性</td>
                <td>币种</td>
                <td>售价</td>
                <td>msrp(美元)</td>
                <td>波动范围（元）</td>
                <td>最小波动值</td>
            </tr>
            <!--<? foreach ($this->skuInfo as $row) { ?>-->
            <tr style="text-align: center">
                <td><!--<? echo $row['Variant']['sku'] ?>--></td>
                <td><!--<? echo !empty($row['Variant']['size']) ? $row['Variant']['size'] : '' ?>--></td>
                <td><!--<? echo $row['Variant']['localized_currency_code'] ?>--></td>
                <td>
                    <!--<? echo $row['Variant']['localized_price'] ?>-->
                </td>
                <td>
                    <!--<? echo $row['Variant']['msrp'] ?>-->
                </td>
                <td>
                    <input type="number" _value="!empty($this->configData['min'][$row['Variant']['sku']]) ? $this->configData['min'][$row['Variant']['sku']] : 0" _name="'min[' . $row['Variant']['sku'] . ']'" class="skuPrice">-
                    <input type="number" _value="!empty($this->configData['max'][$row['Variant']['sku']]) ? $this->configData['max'][$row['Variant']['sku']] : 0" _name="'max[' . $row['Variant']['sku'] . ']'" class="skuPrice">
                </td>
                <td>
                    <input type="number" _value="!empty($this->configData['range'][$row['Variant']['sku']]) ? $this->configData['range'][$row['Variant']['sku']] : 0" _name="'range[' . $row['Variant']['sku'] . ']'" class="skuPrice">
                </td>
            </tr>
            <!--<? } ?>-->
            <tr style="text-align: center">
                <td>运费</td>
                <td></td>
                <td><!--<? echo $this->shipping['localized_currency_code']; ?>--></td>
                <td><!--<? echo !empty($this->configData['oldShipFee']) ? $this->configData['oldShipFee'] : $this->shipping['localized_price']; ?>--></td>
                <td></td>
                <td>
                    <input type="number" _value="!empty($this->configData['min']['shippingFee']) ? $this->configData['min']['shippingFee'] : 0" name="min[shippingFee]" class="skuPrice">-
                    <input type="number" _value="!empty($this->configData['max']['shippingFee']) ? $this->configData['max']['shippingFee'] : 0" name="max[shippingFee]" class="skuPrice">
                </td>
                <td>
                    <input type="number" _value="!empty($this->configData['range']['shippingFee']) ? $this->configData['range']['shippingFee'] : 0" name="range[shippingFee]" class="skuPrice">
                </td>
            </tr>
        </table>
        <input type="hidden" name="oldPriceInfo" _value="$this->oldPriceInfo">
        <input type="hidden" name="oldShipFee" _value="!empty($this->configData['oldShipFee']) ? $this->configData['oldShipFee'] : $this->shipping['localized_price']">
    </form>
</div>
<div style="position:fixed; right:0px; bottom:10px; z-index:10008; padding: 10px; background: #fff;">
    <div style="padding: 10px 0px 0px 0px;">
        <div style="padding: 10px 0px 0px 0px;text-align: right">
            <input class="btn btn-oper btn-info" type="button" value="取消自动调价" onclick="wishProductObj.submitAutoUpdatePrice('cancel')">
            <input class="btn btn-oper btn-success" type="button" value="提交" onclick="wishProductObj.submitAutoUpdatePrice('submit')">
        </div>
    </div>
</div>
<script _src="ROOT_URL.'/view/js/base.js'"></script>
<script _src="ROOT_URL.'/view/js/wish/wishProduct.js'"></script>